package com.chenjian.vo;

import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UserAddVo {


    @Size(min = 6, max = 20, message = "用户名长度应在6~20字符以内")
    private String userName;

    @Min(value = 18, message = "未成年哦")
    private Integer age;

    @Email(message = "邮箱格式错误")
    private String email;

    @NotNull(message = "该值不能为空")
    @Min(value = 1, message = "该值异常")
    private Long managerId;


}
